﻿namespace GeoSketch2.Core
{
    /// <summary>
    /// Tells if a button will be available or not
    /// </summary>
    public class ActiveMDIParentItems
    {
        #region Fields
        
            /// <summary>
            /// The new button
            /// </summary>
            public bool New;
            /// <summary>
            /// The open button
            /// </summary>
            public bool Open;
            /// <summary>
            /// The save button
            /// </summary>
            public bool Save;
            /// <summary>
            /// The print button
            /// </summary>
            public bool Print;
            /// <summary>
            /// The print preview button
            /// </summary>
            public bool PrintPreview;
            /// <summary>
            /// The help button
            /// </summary>
            public bool Help;
            /// <summary>
            /// The undo button
            /// </summary>
            public bool Undo;
            /// <summary>
            /// The redo button
            /// </summary>
            public bool Redo;
            /// <summary>
            /// The cut button
            /// </summary>
            public bool Cut;
            /// <summary>
            /// The copy button
            /// </summary>
            public bool Copy;
            /// <summary>
            /// The paste button
            /// </summary>
            public bool Paste; 
        #endregion

        #region Constructor
        /// <summary>
        /// Tells if a button will be available or not
        /// </summary>
        /// <param name="All">Sets all the button to enabled or not</param>
        public ActiveMDIParentItems(bool All)
            : this(All, All, All, All, All, All, All, All, All, All, All)
        {
        }

        /// <summary>
        /// Tells if a button will be available or not
        /// </summary>
        /// <param name="New">The new button</param>
        /// <param name="Open">The open button</param>
        /// <param name="Save">The save button</param>
        /// <param name="Print">The print button</param>
        /// <param name="PrintPreview">The print preview button</param>
        /// <param name="Help">The help button</param>
        /// <param name="Undo">The undo button</param>
        /// <param name="Redo">The redo button</param>
        /// <param name="Cut">The cut button</param>
        /// <param name="Copy">The copy button</param>
        /// <param name="Paste">The paste button</param>
        public ActiveMDIParentItems(bool New, bool Open, bool Save, bool Print, bool PrintPreview, bool Help, bool Undo, bool Redo, bool Cut, bool Copy, bool Paste)
        {
            this.New = New;
            this.Open = Open;
            this.Save = Save;
            this.Print = Print;
            this.PrintPreview = PrintPreview;
            this.Help = Help;
            this.Undo = Undo;
            this.Redo = Redo;
            this.Cut = Cut;
            this.Copy = Copy;
            this.Paste = Paste;
        } 
        #endregion
    }
}
